<#if pg??>${pg.countHtml!}</#if>
<table class="list">
  <tr>
    <th width="4%">序号</th>
    <th width="7%">门店名称</th>
    <th width="7%">销售日期</th>
    <th width="4%">类型</th>
    <th width="8%">合同号</th>
    <th width="7%">会员姓名</th>
    <th width="10%">卡种/课程</th>
    <th width="5%" nowrap>合同金额</th>
    <th width="5%" nowrap>定金金额</th>
    <th width="5%" nowrap>付款金额</th>
    <th width="5%" nowrap>销售员1</th>
    <th width="5%" nowrap>销售员2</th>
    <th width="5%" nowrap>短信验证</th>
    <th width="5%" nowrap>内审状态</th>
    <th width="7%">内审时间</th>
    <th width="7%">提交时间</th>
    <th>处理</th>
  </tr>
  <#if list??><#list list as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td>${c_index+1}</td>
    <td><@value type="shopName" key="${c.shopCode!}"/></td>
    <td>${c.saleDate!}</td>
    <td><#if c.type='1'>会籍<#elseif c.type='2'>私教</#if></td>
    <td>${c.contractCode!}</td>
    <td class="member"><a href="javascript:mbinfo('${c.memberCode!}');">${c.memberName!}</a></td>
    <td><#if c.type='1'><@value type="cardType" key="${c.cardType!}"/><#elseif c.type='2'><@value type="ptItemName" key="${c.ptCode!}"/></#if></td>
    <td class="money">${c.factPrice!}</td>
    <td class="money">${c.earnestAmount!}</td>
    <td class="money">${c.payAmount!}</td>
    <td><@value type="salesName" key="${c.salesCode!}"/></td>
    <td><@value type="salesName" key="${c.salesCode2!}"/></td>
    <td><#if c.verifyStatus?? && c.verifyStatus gt 0><@value type="verifyStatus" key="${c.verifyStatus!}"/></#if></td>
    <td><@value type="reviewStatus" key="${c.reviewStatus!}"/></td>
    <td>${c.reviewDate!}</td>
    <td><#if c.reviewSubmitDate??>${c.reviewSubmitDate?string('yyyy-MM-dd HH:mm:ss')}</#if></td>
    <td class="oper" nowrap>
      <#if c.reviewStatus=1 && canReview1??><a class="edit" href="javascript:open('review1?tp=${c.type}&id=${c.saleId}');">初审</a>
      <#elseif c.reviewStatus=2 && canReview2??><a class="edit" href="javascript:open('review2?tp=${c.type}&id=${c.saleId}');">内审</a>
      <#else><a class="edit" href="javascript:open('view?tp=${c.type}&id=${c.saleId}');">查看</a></#if>
    </td>
  </tr>
  </#list></#if>
</table>
<#if pg??>${pg.pageHtml!}</#if>
